/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package battle.ship.model;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

/**
 *
 * @author Carlos
 */
public class Submarine extends Ship {
    
    public static int Size = 1;

    public Submarine(){
        this.size = Size;
        this.points = new ArrayList<>(this.size);
    }
    
    public Submarine(int boardSize){
        super(boardSize);
    }
    
    public Submarine(List<Point> points) {
        super(points);
    }
    
    @Override
    public String getName() {
        return this.getClass().getSimpleName();
    }
    
    public List<Point> createPoint(Point point){   
        this.points.add(point);
        return points;
    }
}
